package com.ngkj.zmfptback.sys.service.read.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ngkj.zmfptback.sys.bean.OperationEntity;
import com.ngkj.zmfptback.sys.mapper.read.OperationReadMapper;
import com.ngkj.zmfptback.sys.service.read.OperationReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/3 creation
 **/
@Service
public class OperationReadServiceImpl extends ServiceImpl<OperationReadMapper,OperationEntity> implements OperationReadService {

    @Resource
    private OperationReadMapper operationReadMapper;

    @Override
    public List<String> getRolByUrl(List<String> urls) {
        return operationReadMapper.getRolByUrl(urls);
    }

    @Override
    public IPage<OperationEntity> getOperList(Page<OperationEntity> page, OperationEntity operationEntity) {
        return operationReadMapper.getOperList(page,operationEntity);
    }
}
